//package com.aisile.article.config;
//
//import io.seata.core.context.RootContext;
//import io.seata.core.exception.TransactionException;
//import io.seata.tm.api.GlobalTransactionContext;
//import org.apache.commons.lang3.StringUtils;
//import org.aspectj.lang.annotation.AfterThrowing;
//import org.aspectj.lang.annotation.Aspect;
//import org.springframework.stereotype.Component;
//
///**
// * @Auther:yry
// * @Date:2024/1/4 0004
// * @VERSON:1.0
// */
//@Aspect
//@Component
//public class WorkAspect {
//    @AfterThrowing(throwing = "e", pointcut = "execution(* com.aisile.article.controller.v1.*.*(..))")
//    public void doRecoveryActions(Throwable e) throws TransactionException {
//        //log.info("方法执行异常:{}", e.getMessage());
//        if (!StringUtils.isBlank(RootContext.getXID())) {
//            GlobalTransactionContext.reload(RootContext.getXID()).rollback();
//        }
//    }
//}
